package com.zcb.agrimarket.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 教师申请表
 * @TableName teacher_apply_log
 */
@TableName(value ="teacher_apply_log")
@Data
public class TeacherApplyLog implements Serializable {
    /**
     * 教师申请表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 申请状态 0-未审核 1-已通过 2-驳回
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 教师id
     */
    @TableField(value = "teacher_id")
    private Long teacherId;

    /**
     * 教师姓名
     */
    @TableField(value = "teacher_name")
    private String teacherName;

    /**
     * 学期id
     */
    @TableField(value = "semester_id")
    private Long semesterId;

    /**
     * 学期名
     */
    @TableField(value = "semester_name")
    private String semesterName;

    /**
     * 实验室类型
     */
    @TableField(value = "lab_type")
    private Long labType;

    /**
     * 实验室类型名
     */
    @TableField(value = "lab_type_name")
    private String labTypeName;

    /**
     * 课程名
     */
    @TableField(value = "course_name")
    private String courseName;

    /**
     * 授课班级
     */
    @TableField(value = "class_name")
    private String className;

    /**
     * 学生数量
     */
    @TableField(value = "student_num")
    private Integer studentNum;

    /**
     * 开始周
     */
    @TableField(value = "begin_week")
    private Integer beginWeek;

    /**
     * 结束周
     */
    @TableField(value = "end_week")
    private Integer endWeek;

    /**
     * 节次数量
     */
    @TableField(value = "amount_of_session")
    private Integer amountOfSession;

    /**
     * 备注
     */
    @TableField(value = "comments")
    private String comments;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除 0-正常 1-删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TeacherApplyLog other = (TeacherApplyLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getTeacherId() == null ? other.getTeacherId() == null : this.getTeacherId().equals(other.getTeacherId()))
            && (this.getTeacherName() == null ? other.getTeacherName() == null : this.getTeacherName().equals(other.getTeacherName()))
            && (this.getSemesterId() == null ? other.getSemesterId() == null : this.getSemesterId().equals(other.getSemesterId()))
            && (this.getSemesterName() == null ? other.getSemesterName() == null : this.getSemesterName().equals(other.getSemesterName()))
            && (this.getLabType() == null ? other.getLabType() == null : this.getLabType().equals(other.getLabType()))
            && (this.getLabTypeName() == null ? other.getLabTypeName() == null : this.getLabTypeName().equals(other.getLabTypeName()))
            && (this.getCourseName() == null ? other.getCourseName() == null : this.getCourseName().equals(other.getCourseName()))
            && (this.getClassName() == null ? other.getClassName() == null : this.getClassName().equals(other.getClassName()))
            && (this.getStudentNum() == null ? other.getStudentNum() == null : this.getStudentNum().equals(other.getStudentNum()))
            && (this.getBeginWeek() == null ? other.getBeginWeek() == null : this.getBeginWeek().equals(other.getBeginWeek()))
            && (this.getEndWeek() == null ? other.getEndWeek() == null : this.getEndWeek().equals(other.getEndWeek()))
            && (this.getAmountOfSession() == null ? other.getAmountOfSession() == null : this.getAmountOfSession().equals(other.getAmountOfSession()))
            && (this.getComments() == null ? other.getComments() == null : this.getComments().equals(other.getComments()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getTeacherId() == null) ? 0 : getTeacherId().hashCode());
        result = prime * result + ((getTeacherName() == null) ? 0 : getTeacherName().hashCode());
        result = prime * result + ((getSemesterId() == null) ? 0 : getSemesterId().hashCode());
        result = prime * result + ((getSemesterName() == null) ? 0 : getSemesterName().hashCode());
        result = prime * result + ((getLabType() == null) ? 0 : getLabType().hashCode());
        result = prime * result + ((getLabTypeName() == null) ? 0 : getLabTypeName().hashCode());
        result = prime * result + ((getCourseName() == null) ? 0 : getCourseName().hashCode());
        result = prime * result + ((getClassName() == null) ? 0 : getClassName().hashCode());
        result = prime * result + ((getStudentNum() == null) ? 0 : getStudentNum().hashCode());
        result = prime * result + ((getBeginWeek() == null) ? 0 : getBeginWeek().hashCode());
        result = prime * result + ((getEndWeek() == null) ? 0 : getEndWeek().hashCode());
        result = prime * result + ((getAmountOfSession() == null) ? 0 : getAmountOfSession().hashCode());
        result = prime * result + ((getComments() == null) ? 0 : getComments().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", state=").append(state);
        sb.append(", teacherId=").append(teacherId);
        sb.append(", teacherName=").append(teacherName);
        sb.append(", semesterId=").append(semesterId);
        sb.append(", semesterName=").append(semesterName);
        sb.append(", labType=").append(labType);
        sb.append(", labTypeName=").append(labTypeName);
        sb.append(", courseName=").append(courseName);
        sb.append(", className=").append(className);
        sb.append(", studentNum=").append(studentNum);
        sb.append(", beginWeek=").append(beginWeek);
        sb.append(", endWeek=").append(endWeek);
        sb.append(", amountOfSession=").append(amountOfSession);
        sb.append(", comments=").append(comments);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}